package org.wukongcrm.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 商机分成表
    */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "business_share")
public class BusinessShare implements Serializable {
    @TableId(value = "id", type = IdType.INPUT)
    private Integer id;

    /**
     * 商机id
     */
    @TableField(value = "business_id")
    private Integer businessId;

    /**
     * 分配对象（团队成员）
     */
    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 提成比例
     */
    @TableField(value = "ratio")
    private Double ratio;

    /**
     * 系数
     */
    @TableField(value = "factor")
    private Double factor;

    /**
     * 分成日期
     */
    @TableField(value = "share_date")
    private Date shareDate;

    /**
     * 备注
     */
    @TableField(value = "remarks")
    private String remarks;

    private static final long serialVersionUID = 1L;
}